package com.gongjie.blog.admin.service;

import com.gongjie.blog.vo.Result;
import com.gongjie.blog.vo.params.ArticleParam;
import com.gongjie.blog.vo.params.PageParams;

/**
 * @author jiegong
 * @create 2021-09-22 16:37
 */
public interface ArticleService {
    //分页查询文章列表
    Result listArticle(PageParams pageParams);

    // 最热文章
    Result hotArticle(int limit);

    // 最新文章
    Result newArticle(int limit);

    // 文章归档
    Result listArchives();

    // 查看文章详情
    Result findArticleById(Long articleId);

    // 发布文章
    Result publish(ArticleParam articleParam);
}
